package com.rpc.protocal.serilization;

import com.fasterxml.jackson.core.JsonProcessingException;

import java.io.IOException;

/**
 * RpcSerialization
 * 序列化接口
 * @author 春江花朝秋月夜
 * @since 2024/1/16
 */
public interface RpcSerialization {
    <T> byte[] serialize(T object) throws JsonProcessingException;
    <T> T deserialize(byte[] data,Class<T> tClass) throws IOException;
}
